// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  // components: { App },
  // template: '<App/>'
  // 将指定区域的标签进行数据替换
  render: function (createElement) {
    // 1. 普通用法： createElement("标签", {属性key : 属性value}, [""])
    // return createElement('h2', 
    // {class : "box"},
    // ["hello world", createElement("button", "我是按钮")])

    // 2. 传入组件对象
    return createElement(App)
  }
})
